﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace OpenTwitter.SDK.Sina.Objects
{
    /// <summary>
    /// 用户账号资料的返回数据
    /// </summary>
    public class UserProfileData : ResponseData
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="xml"></param>
        internal UserProfileData(XmlNode xml)
            : base(xml)
        { }

        /// <summary>
        /// 账号资料
        /// </summary>
        public UserProfile Profile { get; private set; }
        /// <summary>
        /// 解析XML文档数据
        /// </summary>
        protected override void Parse()
        {
            base.Parse();
            this.Profile = new UserProfile(this.Xml);
        }
    }
}
